#ifndef QCAM_H_
#define QCAM_H_

#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"

#include "debug.h"

class QCam{
public:
    QCam();
    ~QCam();

    CvCapture* openCam(int index = 0);
    void closeCam();

    IplImage* getImage();
    IplImage* getFrame();

private:
    CvCapture* cap;

};

#endif
